<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>进度列表</title>
    <link rel="stylesheet" href="{% static 'bootstrap5/bootstrap.min.css' %}">
    <script src="{% static 'bootstrap5/popper.min.js' %}"></script>
    <script src="{% static 'bootstrap5/bootstrap.min.js' %}"></script>
</head>
<body>
<header>
    <div class="px-3 py-2 text-bg-dark">
        <div class="container">
            <div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
                <a href="/" class="d-flex align-items-center my-2 my-lg-0 me-lg-auto text-white text-decoration-none">
                    <svg class="bi me-2" width="40" height="32" role="img" aria-label="Bootstrap"><use href="#bootstrap"></use></svg>
                </a>

                <ul class="nav col-12 col-lg-auto my-2 justify-content-center my-md-0 text-small">
                    <li>
                        <a href="/index" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#speedometer2"></use></svg>
                            主页
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#home"></use></svg>
                            检测记录
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#table"></use></svg>
                            智能助手
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="black"></use></svg>
                            黑白名单
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#people-circle"></use></svg>
                            模型信息
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="px-3 py-2 border-bottom mb-3">
        <div class="container d-flex flex-wrap justify-content-center">
            <form class="col-12 col-lg-auto mb-2 mb-lg-0 me-lg-auto" role="search">
                <input type="search" class="form-control" placeholder="Search..." aria-label="Search">
            </form>

            <div class="text-end">
                {#                <button type="button" class="btn btn-light text-dark me-2">Login</button>#}
                {#                <button type="button" class="btn btn-primary">Sign-up</button>#}
            </div>
        </div>
    </div>
</header>
<main>
    <section class="py-5 text-center container">
        <div class="row py-lg-5">
            <div class="col-lg-6 col-md-8 mx-auto">
                <h1 class="fw-light">进度列表</h1>
                <p class="lead text-muted">
                    <br>
                </p>
                <p>
{#                    <a href="#" class="btn btn-primary my-2">查看进度列表</a>#}
                    <a href="http://120.24.64.102:9000" class="btn btn-secondary my-2">查看数据库</a>
                </p>
            </div>
        </div>
    </section>
    <div class="card">
        <div class="card-body">
            <h4 class="card-title">进度列表</h4>
            <p class="card-description">
                Add class <code>.table-dark</code>
            </p>
            <div class="table-responsive pt-3">
                <table class="table table-dark">
                    <thead>
                    <tr>
                        <th>
                            APK
                        </th>
                        <th>
                            状态
                        </th>
                        <th>
                            操作时间
                        </th>
                    </tr>
                    </thead>
                    
                    <tbody>
                    {% for file in files %}
                        <tr>
                            <td>
                                {{ file.name }}
                            </td>
                            <td>
                                已完成
                            </td>
                            <td>
                                {{ file.size }}
                            </td>
                            <td>
                                <a href="http://120.24.64.102:9000" class="btn btn-secondary my-2">查看</a>
                            </td>
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
            </div>
        </div>
    </div>

</main>
</body>
</html>
